<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.20"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>JCSDK C# API Reference for Windows: JCSDK.JCMediaChannel.JCMediaChannelCallback接口 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">JCSDK C# API Reference for Windows
   &#160;<span id="projectnumber">2.3.3.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.20 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespace_j_c_s_d_k.html">JCSDK</a></li><li class="navelem"><a class="el" href="namespace_j_c_s_d_k_1_1_j_c_media_channel.html">JCMediaChannel</a></li><li class="navelem"><a class="el" href="interface_j_c_s_d_k_1_1_j_c_media_channel_1_1_j_c_media_channel_callback.html">JCMediaChannelCallback</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="interface_j_c_s_d_k_1_1_j_c_media_channel_1_1_j_c_media_channel_callback-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">JCSDK.JCMediaChannel.JCMediaChannelCallback接口 参考<div class="ingroups"><a class="el" href="group___xE5_xAA_x92_xE4_xBD_x93_xE9_xA2_x91_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html">媒体频道模块</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:ab014f3ec038d8abe13b7c0d63d66f9a7"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_j_c_s_d_k_1_1_j_c_media_channel_1_1_j_c_media_channel_callback.html#ab014f3ec038d8abe13b7c0d63d66f9a7">onMediaChannelStateChange</a> (<a class="el" href="group___xE5_xAA_x92_xE4_xBD_x93_xE9_xA2_x91_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#ga9fd2743975b3a706bb5fc0b581236d92">JCMediaChannelState</a> state, <a class="el" href="group___xE5_xAA_x92_xE4_xBD_x93_xE9_xA2_x91_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#ga9fd2743975b3a706bb5fc0b581236d92">JCMediaChannelState</a> oldState)</td></tr>
<tr class="separator:ab014f3ec038d8abe13b7c0d63d66f9a7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3e5def0199b22c76a8e5e0f69508e0c3"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_j_c_s_d_k_1_1_j_c_media_channel_1_1_j_c_media_channel_callback.html#a3e5def0199b22c76a8e5e0f69508e0c3">onMediaChannelPropertyChange</a> (<a class="el" href="class_j_c_s_d_k_1_1_j_c_media_channel_1_1_j_c_media_channel_1_1_prop_change_param.html">JCMediaChannel.PropChangeParam</a> propChangeParam)</td></tr>
<tr class="separator:a3e5def0199b22c76a8e5e0f69508e0c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a13c03cd2a9e179eb2e53f936538a6c5b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_j_c_s_d_k_1_1_j_c_media_channel_1_1_j_c_media_channel_callback.html#a13c03cd2a9e179eb2e53f936538a6c5b">onJoin</a> (bool result, <a class="el" href="group___xE5_xAA_x92_xE4_xBD_x93_xE9_xA2_x91_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#gad8715f75fe6f3a4f4ccdd38e513d1a0f">JCMediaChannelReason</a> reason, string channelId)</td></tr>
<tr class="separator:a13c03cd2a9e179eb2e53f936538a6c5b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7047427bbb7433037dd20bd24fcda6e9"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_j_c_s_d_k_1_1_j_c_media_channel_1_1_j_c_media_channel_callback.html#a7047427bbb7433037dd20bd24fcda6e9">onLeave</a> (<a class="el" href="group___xE5_xAA_x92_xE4_xBD_x93_xE9_xA2_x91_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#gad8715f75fe6f3a4f4ccdd38e513d1a0f">JCMediaChannelReason</a> reason, string channelId)</td></tr>
<tr class="separator:a7047427bbb7433037dd20bd24fcda6e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a628b26da0412c22a4ad32a1b8e422f2c"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_j_c_s_d_k_1_1_j_c_media_channel_1_1_j_c_media_channel_callback.html#a628b26da0412c22a4ad32a1b8e422f2c">onStop</a> (bool result, <a class="el" href="group___xE5_xAA_x92_xE4_xBD_x93_xE9_xA2_x91_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#gad8715f75fe6f3a4f4ccdd38e513d1a0f">JCMediaChannelReason</a> reason)</td></tr>
<tr class="separator:a628b26da0412c22a4ad32a1b8e422f2c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5058da3473ec04211aae62d40d98ee70"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_j_c_s_d_k_1_1_j_c_media_channel_1_1_j_c_media_channel_callback.html#a5058da3473ec04211aae62d40d98ee70">onQuery</a> (int operationId, bool result, <a class="el" href="group___xE5_xAA_x92_xE4_xBD_x93_xE9_xA2_x91_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#gad8715f75fe6f3a4f4ccdd38e513d1a0f">JCMediaChannelReason</a> reason, <a class="el" href="class_j_c_s_d_k_1_1_j_c_media_channel_1_1_j_c_media_channel_query_info.html">JCMediaChannelQueryInfo</a> queryInfo)</td></tr>
<tr class="separator:a5058da3473ec04211aae62d40d98ee70"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad832f5650185c7ed2e599bd60d21edbf"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_j_c_s_d_k_1_1_j_c_media_channel_1_1_j_c_media_channel_callback.html#ad832f5650185c7ed2e599bd60d21edbf">onParticipantJoin</a> (<a class="el" href="class_j_c_s_d_k_1_1_j_c_media_channel_1_1_j_c_media_channel_participant.html">JCMediaChannelParticipant</a> participant)</td></tr>
<tr class="separator:ad832f5650185c7ed2e599bd60d21edbf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1681876e22caf825d6e0a29b095586d0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_j_c_s_d_k_1_1_j_c_media_channel_1_1_j_c_media_channel_callback.html#a1681876e22caf825d6e0a29b095586d0">onParticipantLeft</a> (<a class="el" href="class_j_c_s_d_k_1_1_j_c_media_channel_1_1_j_c_media_channel_participant.html">JCMediaChannelParticipant</a> participant)</td></tr>
<tr class="separator:a1681876e22caf825d6e0a29b095586d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a742c4faad421cf18f991dc954374931f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_j_c_s_d_k_1_1_j_c_media_channel_1_1_j_c_media_channel_callback.html#a742c4faad421cf18f991dc954374931f">onParticipantUpdate</a> (<a class="el" href="class_j_c_s_d_k_1_1_j_c_media_channel_1_1_j_c_media_channel_participant.html">JCMediaChannelParticipant</a> participant, <a class="el" href="class_j_c_s_d_k_1_1_j_c_media_channel_1_1_j_c_media_channel_participant_1_1_change_param.html">JCMediaChannelParticipant.ChangeParam</a> changeParam)</td></tr>
<tr class="separator:a742c4faad421cf18f991dc954374931f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af4a177c86b12bcc1df453e4a660f91ce"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_j_c_s_d_k_1_1_j_c_media_channel_1_1_j_c_media_channel_callback.html#af4a177c86b12bcc1df453e4a660f91ce">onMessageReceive</a> (string type, string content, string fromUserId)</td></tr>
<tr class="separator:af4a177c86b12bcc1df453e4a660f91ce"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afe1a8da40d4e3b4ac085760a0d37cb51"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_j_c_s_d_k_1_1_j_c_media_channel_1_1_j_c_media_channel_callback.html#afe1a8da40d4e3b4ac085760a0d37cb51">onInviteSipUserResult</a> (int operationId, bool result, int reason)</td></tr>
<tr class="separator:afe1a8da40d4e3b4ac085760a0d37cb51"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a82151747e97c7f0cc121263fd048739a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="interface_j_c_s_d_k_1_1_j_c_media_channel_1_1_j_c_media_channel_callback.html#a82151747e97c7f0cc121263fd048739a">onParticipantVolumeChange</a> (<a class="el" href="class_j_c_s_d_k_1_1_j_c_media_channel_1_1_j_c_media_channel_participant.html">JCMediaChannelParticipant</a> participant)</td></tr>
<tr class="separator:a82151747e97c7f0cc121263fd048739a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_channel_1_1_j_c_media_channel.html">JCMediaChannel</a> 回调 </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="afe1a8da40d4e3b4ac085760a0d37cb51"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afe1a8da40d4e3b4ac085760a0d37cb51">&#9670;&nbsp;</a></span>onInviteSipUserResult()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void JCSDK.JCMediaChannel.JCMediaChannelCallback.onInviteSipUserResult </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>operationId</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>result</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>reason</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>邀请Sip用户操作结果回调</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">operationId</td><td>操作id </td></tr>
    <tr><td class="paramname">result</td><td>邀请用户是否成功<ul>
<li>true：成功，此时会触发 <a class="el" href="interface_j_c_s_d_k_1_1_j_c_media_channel_1_1_j_c_media_channel_callback.html#ad832f5650185c7ed2e599bd60d21edbf">onParticipantJoin</a> 回调</li>
<li>false：失败 </li>
</ul>
</td></tr>
    <tr><td class="paramname">reason</td><td>失败原因，当 result 为 false 时该值有效。参见：<a class="el" href="group___xE5_xAA_x92_xE4_xBD_x93_xE9_xA2_x91_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#gad8715f75fe6f3a4f4ccdd38e513d1a0f">失败原因</a> </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a13c03cd2a9e179eb2e53f936538a6c5b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a13c03cd2a9e179eb2e53f936538a6c5b">&#9670;&nbsp;</a></span>onJoin()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void JCSDK.JCMediaChannel.JCMediaChannelCallback.onJoin </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>result</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group___xE5_xAA_x92_xE4_xBD_x93_xE9_xA2_x91_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#gad8715f75fe6f3a4f4ccdd38e513d1a0f">JCMediaChannelReason</a>&#160;</td>
          <td class="paramname"><em>reason</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>channelId</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>加入频道结果回调</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">result</td><td>加入频道是否成功<ul>
<li>true：成功</li>
<li>false：失败 </li>
</ul>
</td></tr>
    <tr><td class="paramname">reason</td><td>加入失败原因，当 result 为 false 时该值有效。失败原因参见：<a class="el" href="group___xE5_xAA_x92_xE4_xBD_x93_xE9_xA2_x91_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#gad8715f75fe6f3a4f4ccdd38e513d1a0f">错误码</a> </td></tr>
    <tr><td class="paramname">channelId</td><td>频道标识符 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a7047427bbb7433037dd20bd24fcda6e9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7047427bbb7433037dd20bd24fcda6e9">&#9670;&nbsp;</a></span>onLeave()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void JCSDK.JCMediaChannel.JCMediaChannelCallback.onLeave </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group___xE5_xAA_x92_xE4_xBD_x93_xE9_xA2_x91_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#gad8715f75fe6f3a4f4ccdd38e513d1a0f">JCMediaChannelReason</a>&#160;</td>
          <td class="paramname"><em>reason</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>channelId</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>离开频道结果回调</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">reason</td><td>离开原因，参见：<a class="el" href="group___xE5_xAA_x92_xE4_xBD_x93_xE9_xA2_x91_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#gad8715f75fe6f3a4f4ccdd38e513d1a0f">离开原因</a> </td></tr>
    <tr><td class="paramname">channelId</td><td>频道标识符 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a3e5def0199b22c76a8e5e0f69508e0c3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3e5def0199b22c76a8e5e0f69508e0c3">&#9670;&nbsp;</a></span>onMediaChannelPropertyChange()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void JCSDK.JCMediaChannel.JCMediaChannelCallback.onMediaChannelPropertyChange </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_channel_1_1_j_c_media_channel_1_1_prop_change_param.html">JCMediaChannel.PropChangeParam</a>&#160;</td>
          <td class="paramname"><em>propChangeParam</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>属性变化回调</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">changeParam</td><td><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_channel_1_1_j_c_media_channel_1_1_prop_change_param.html">PropChangeParam</a> 变化标识集合 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ab014f3ec038d8abe13b7c0d63d66f9a7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab014f3ec038d8abe13b7c0d63d66f9a7">&#9670;&nbsp;</a></span>onMediaChannelStateChange()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void JCSDK.JCMediaChannel.JCMediaChannelCallback.onMediaChannelStateChange </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="group___xE5_xAA_x92_xE4_xBD_x93_xE9_xA2_x91_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#ga9fd2743975b3a706bb5fc0b581236d92">JCMediaChannelState</a>&#160;</td>
          <td class="paramname"><em>state</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group___xE5_xAA_x92_xE4_xBD_x93_xE9_xA2_x91_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#ga9fd2743975b3a706bb5fc0b581236d92">JCMediaChannelState</a>&#160;</td>
          <td class="paramname"><em>oldState</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>自身在频道中的状态变化回调</p>
<p>状态：</p><ul>
<li><a class="el" href="group___xE5_xAA_x92_xE4_xBD_x93_xE9_xA2_x91_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#ga9fd2743975b3a706bb5fc0b581236d92">Idle</a> : 空闲状态</li>
<li><a class="el" href="group___xE5_xAA_x92_xE4_xBD_x93_xE9_xA2_x91_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#ga9fd2743975b3a706bb5fc0b581236d92">Joining</a> : 加入中</li>
<li><a class="el" href="group___xE5_xAA_x92_xE4_xBD_x93_xE9_xA2_x91_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#ga9fd2743975b3a706bb5fc0b581236d92">Joined</a> : 已加入</li>
<li><a class="el" href="group___xE5_xAA_x92_xE4_xBD_x93_xE9_xA2_x91_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#ga9fd2743975b3a706bb5fc0b581236d92">Leaving</a> : 离开中</li>
</ul>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">state</td><td>当前状态 </td></tr>
    <tr><td class="paramname">oldState</td><td>变化前状态 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="af4a177c86b12bcc1df453e4a660f91ce"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af4a177c86b12bcc1df453e4a660f91ce">&#9670;&nbsp;</a></span>onMessageReceive()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void JCSDK.JCMediaChannel.JCMediaChannelCallback.onMessageReceive </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>content</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>fromUserId</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>接收频道消息的回调</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">type</td><td>消息类型 对应 <a class="el" href="class_j_c_s_d_k_1_1_j_c_media_channel_1_1_j_c_media_channel.html#a4a049113155708a09be3d72b6f595a2d">sendMessage</a> 方法中的 type 参数 </td></tr>
    <tr><td class="paramname">content</td><td>消息内容 对应 <a class="el" href="class_j_c_s_d_k_1_1_j_c_media_channel_1_1_j_c_media_channel.html#a4a049113155708a09be3d72b6f595a2d">sendMessage</a> 方法中的 content 参数 </td></tr>
    <tr><td class="paramname">fromUserId</td><td>消息发送成员的 userId </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ad832f5650185c7ed2e599bd60d21edbf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad832f5650185c7ed2e599bd60d21edbf">&#9670;&nbsp;</a></span>onParticipantJoin()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void JCSDK.JCMediaChannel.JCMediaChannelCallback.onParticipantJoin </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_channel_1_1_j_c_media_channel_participant.html">JCMediaChannelParticipant</a>&#160;</td>
          <td class="paramname"><em>participant</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>新成员加入回调</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">participant</td><td><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_channel_1_1_j_c_media_channel_participant.html">JCMediaChannelParticipant</a> 成员对象 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a1681876e22caf825d6e0a29b095586d0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a1681876e22caf825d6e0a29b095586d0">&#9670;&nbsp;</a></span>onParticipantLeft()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void JCSDK.JCMediaChannel.JCMediaChannelCallback.onParticipantLeft </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_channel_1_1_j_c_media_channel_participant.html">JCMediaChannelParticipant</a>&#160;</td>
          <td class="paramname"><em>participant</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>成员离开回调</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">participant</td><td><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_channel_1_1_j_c_media_channel_participant.html">JCMediaChannelParticipant</a> 成员对象 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a742c4faad421cf18f991dc954374931f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a742c4faad421cf18f991dc954374931f">&#9670;&nbsp;</a></span>onParticipantUpdate()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void JCSDK.JCMediaChannel.JCMediaChannelCallback.onParticipantUpdate </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_channel_1_1_j_c_media_channel_participant.html">JCMediaChannelParticipant</a>&#160;</td>
          <td class="paramname"><em>participant</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_channel_1_1_j_c_media_channel_participant_1_1_change_param.html">JCMediaChannelParticipant.ChangeParam</a>&#160;</td>
          <td class="paramname"><em>changeParam</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>成员更新回调</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">participant</td><td><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_channel_1_1_j_c_media_channel_participant.html">JCMediaChannelParticipant</a> 成员对象 </td></tr>
    <tr><td class="paramname">changeParam</td><td><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_channel_1_1_j_c_media_channel_participant_1_1_change_param.html">ChangeParam</a> 更新标识类 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a82151747e97c7f0cc121263fd048739a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a82151747e97c7f0cc121263fd048739a">&#9670;&nbsp;</a></span>onParticipantVolumeChange()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void JCSDK.JCMediaChannel.JCMediaChannelCallback.onParticipantVolumeChange </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_channel_1_1_j_c_media_channel_participant.html">JCMediaChannelParticipant</a>&#160;</td>
          <td class="paramname"><em>participant</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>成员声音变化</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">participant</td><td><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_channel_1_1_j_c_media_channel_participant.html">JCMediaChannelParticipant</a> 变化成员 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a5058da3473ec04211aae62d40d98ee70"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5058da3473ec04211aae62d40d98ee70">&#9670;&nbsp;</a></span>onQuery()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void JCSDK.JCMediaChannel.JCMediaChannelCallback.onQuery </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>operationId</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>result</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group___xE5_xAA_x92_xE4_xBD_x93_xE9_xA2_x91_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#gad8715f75fe6f3a4f4ccdd38e513d1a0f">JCMediaChannelReason</a>&#160;</td>
          <td class="paramname"><em>reason</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_channel_1_1_j_c_media_channel_query_info.html">JCMediaChannelQueryInfo</a>&#160;</td>
          <td class="paramname"><em>queryInfo</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>查询频道信息结果回调</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">operationId</td><td>操作id，由 <a class="el" href="class_j_c_s_d_k_1_1_j_c_media_channel_1_1_j_c_media_channel.html#a70733aacd3cfb07525129c9ba551610f">query</a> 接口返回 </td></tr>
    <tr><td class="paramname">result</td><td>查询频道信息是否成功<ul>
<li>true：查询成功</li>
<li>false：查询失败 </li>
</ul>
</td></tr>
    <tr><td class="paramname">reason</td><td>查询失败原因，当 result 为 false 时该值有效。失败原因参见：<a class="el" href="group___xE5_xAA_x92_xE4_xBD_x93_xE9_xA2_x91_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#gad8715f75fe6f3a4f4ccdd38e513d1a0f">失败原因</a> </td></tr>
    <tr><td class="paramname">queryInfo</td><td><a class="el" href="class_j_c_s_d_k_1_1_j_c_media_channel_1_1_j_c_media_channel_query_info.html">JCMediaChannelQueryInfo</a> 对象，查询到的频道信息，当失败时只需关注 <a class="el" href="class_j_c_s_d_k_1_1_j_c_media_channel_1_1_j_c_media_channel_query_info.html#a812d51cf660c7e4327babb06f849dff2">channelId</a> </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a628b26da0412c22a4ad32a1b8e422f2c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a628b26da0412c22a4ad32a1b8e422f2c">&#9670;&nbsp;</a></span>onStop()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void JCSDK.JCMediaChannel.JCMediaChannelCallback.onStop </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>result</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="group___xE5_xAA_x92_xE4_xBD_x93_xE9_xA2_x91_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#gad8715f75fe6f3a4f4ccdd38e513d1a0f">JCMediaChannelReason</a>&#160;</td>
          <td class="paramname"><em>reason</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>解散频道结果回调</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">result</td><td>解散频道是否成功<ul>
<li>true：成功</li>
<li>false：失败 </li>
</ul>
</td></tr>
    <tr><td class="paramname">reason</td><td>解散失败原因，当 result 为 false 时该值有效。失败原因参见：<a class="el" href="group___xE5_xAA_x92_xE4_xBD_x93_xE9_xA2_x91_xE9_x81_x93_xE6_xA8_xA1_xE5_x9D_x97.html#gad8715f75fe6f3a4f4ccdd38e513d1a0f">失败原因</a> </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>该接口的文档由以下文件生成:<ul>
<li>JCSDK/JCSDK/JCMediaChannel/JCMediaChannelCallback.cs</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="http://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.8.20
</small></address>
</body>
</html>
